package com.hm.health.entity;

import android.content.Intent;

/**
 * Created by chenshi on 2019/12/20.
 */

public class NavigationBean {
    private int mId;
    private int mImgResIdLeft;
    private int mImgResIdRight;
    private String title;
    private Intent mIntent;
    private String description;
    private ICallback mCallback;

    public ICallback getCallback() {
        return mCallback;
    }

    public interface ICallback {
        void onItemClicked(NavigationBean item);
    }

    public NavigationBean(int imgResIdLeft, String title, Intent intent) {
        mImgResIdLeft = imgResIdLeft;
        this.title = title;
        mIntent = intent;
    }

    public void setCallback(ICallback callback) {
        mCallback = callback;
    }

    public int getId() {
        return mId;
    }

    public void setId(int id) {
        mId = id;
    }

    public int getImgResIdLeft() {
        return mImgResIdLeft;
    }

    public void setImgResIdLeft(int imgResIdLeft) {
        mImgResIdLeft = imgResIdLeft;
    }

    public int getImgResIdRight() {
        return mImgResIdRight;
    }

    public void setImgResIdRight(int imgResIdRight) {
        mImgResIdRight = imgResIdRight;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Intent getIntent() {
        return mIntent;
    }

    public void setIntent(Intent intent) {
        mIntent = intent;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
